{include template('header','common')}	
	<div id="Mainbox">
	<script src="{THEME_STYLE_PATH}style/js/jquery.min.js"></script>
<link href="{THEME_STYLE_PATH}style/css/prize.css" type="text/css" rel="stylesheet" />
		<!--插入侧边栏-->
			{include template('sidebar_login','common')}
		<!--插入侧边栏-->
		<!--顶端公告-->
			{include template('top_advance','common')}

		<!--顶端公告-->
		<!--左侧-->
			{include template('mall_menu','common')}
		<!--左侧-->
		<!--右侧-->
			<div class="prize_right">
				<!--奖品列表-->
				<div class="prize_listbox">
					<div class="prize_listbox_opt">
						<ul>
							<li class="a1"><strong>
							{if I('shop_type') == 1}虚拟{else}数码{/if}({if I('credit_type') == 'bean'}{type_change()}豆{else}{type_change()}币{/if})分类：</strong></li>
							<li class="a2">
							<?php if(I('shop_type') == 1){
								$_order ='listorder';
								$_num = '3';   
							}else if(I('shop_type') == 2){
								 $_order ='listorder DESC';
								 $_num = '5';   
							}else{
								$_order ='listorder';
								$_num = '3';   
							} 
							?>
							{pc:document action="category" catid="6" order="$_order" num="$_num"}		
								{loop $data $t}
								<a href="{$t[url]}&credit_type={I('credit_type')}&shop_type={I('shop_type')}">{$t['catname']}</a>
								{/loop}
							{/pc}
							</li>
						</ul>
					</div>
				<div class="prize_listbox_in">
				<?php 
					if(I("credit_type") == "bean"){
						$imgs = 'ud.gif';
						if($_GET['shop_type'])
						{						
							$_where="credit_type = 'bean' AND shop_type = ".$_GET['shop_type'];
						}else{
							$_where="credit_type = 'bean'";
						} 
					}else{ 
						$imgs = 'ub.gif';
						if(I('shop_type'))
						{							
							$_where="credit_type = 'coin' AND shop_type = ".$_GET['shop_type'];
						}else{
							$_where="credit_type = 'coin'";
						} 
					}
				 ?>
				{pc:document action="lists" catid="$catid" where='$_where' num="12" page="$page"}
				{loop $data $e}
					<div class="prize_mode" onclick="window.open('{$e[url]}');">
						<div class="prize_mode_i">
							<div class="prize_mode_i_in"><img title="{$e['title']}" src="{$e['thumb']}" width="98" height="108"/></div>
						</div>
						<div class="prize_mode_t"><P>{$e['title']}</P><p><span class="udcl"><strong>{$e['credit_num']}</strong></span><img src="{THEME_STYLE_PATH}style/images/{$imgs}" class="ub14"/></p></div>
					 </div>					
				{/loop}
				{/pc}
				</div>
					<!--翻页模板-->
					<div><span class="da3">{$pages}</span></div>
					<!--翻页模板-->
				</div>
				<!--奖品列表-->
			</div>
		<!--右侧-->
		<div class="clear"></div>
	</div>
	<!--主体-->
	<!--尾部-->
	{include template('footer','common')}
	<!--尾部-->
</body>
</html>
<script type="text/javascript">
$(document).ready(function(){
	$('div.prize_mode').mouseover(function(){
		$(this).removeClass('prize_mode').addClass('prize_mode_on');
	}).mouseout(function(){
		$(this).removeClass('prize_mode_on').addClass('prize_mode');
	});
});
</script>
